package com.system.coupon.controller;

import com.system.coupon.feign.ProductOrderFeignSerivce;
import com.system.coupon.util.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    ProductOrderFeignSerivce productOrderFeignSerivce;
    @GetMapping("test")
    public JsonData testFeign(){
        System.out.println("test");
        JsonData hello = productOrderFeignSerivce.queryProductOrderState("9uIakxXHAgr0X33YMIyUmCotbKADcSQ6");
        return hello;
    }

}
